package com.ctshk.rpc.iotc.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

@Data
@ApiModel(value = "编辑推广码Req",description = "编辑推广码Req")
public class OperatePromotionUpdateReq implements Serializable {

    private static final long serialVersionUID = -5924161639866278899L;
    @ApiModelProperty(value = "id",required = true)
    private Long id;

    @ApiModelProperty(value = "活动总金额",required = true)
    private BigDecimal totalAmount;

    @ApiModelProperty(value = "活动周期",required = true)
    private Integer activityCycle;

    @ApiModelProperty(value = "活动周期星期数据")
    private String activityCycleWeeks;

    @ApiModelProperty(value = "满足X金额")
    private BigDecimal fullAmount;

    @ApiModelProperty(value = "减X金额")
    private BigDecimal reductionAmount;

    @ApiModelProperty(value = "优惠总名额")
    private Integer totalDiscountQuota;

    @ApiModelProperty(value = "优惠说明")
    private String discountExplain;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "业务类型(1旅行团2定制包团3机票4酒店5火车6门票)")
    private Integer businessType;

    @ApiModelProperty(value = "适用产品(数组格式[产品ID,产品ID2])",example = "[1234567890,1234567891]")
    private List<Long> relationIdList;

    @ApiModelProperty(value = "适用渠道(Json格式)(1.云平台,2.云平台-代理下单,3.PC-港中旅,4.APP-中旅安卓,5.APP-中旅IOS,6.中旅H5,7.TMC-中旅差旅)",example = "")
    private List<OperateJson> channelsJson;

    @ApiModelProperty(value = "适用部门(Json格式)")
    private List<OperateJson> departmentsJson;

    @ApiModelProperty(value = "优惠对象(Json格式)(1.星赏会会员,2.普通会员,3.非会员)")
    private List<OperateJson> discountObjectsJson;

    @ApiModelProperty(value = "推广码状态(0 已撤回 1 未提交 2 审批中 3 审批不通过 4 有效 5暂停  6无效)",hidden = true)
    private Integer status;

    @ApiModelProperty(value = "保存状态(1仅保存，2开启一个审批)",required = true)
    private Integer saveStatus;

}
